package com.caesar.IoStream;

import org.junit.jupiter.api.Test;

import java.io.File;
import java.io.IOException;

/**
 * @author caesar
 * @date 2025/7/14
 * @Description:
 * @apiNote
 */
public class exer1 {
    @Test
    public void test01() throws IOException {
        File dir = new File("d:\\testIO");
        dir.mkdir();

        File file = new File("d:\\testIO\\1.txt");
        file.createNewFile();
    }

    @Test
    public void test02() throws IOException {
        File dir = new File("testIO");
        dir.mkdir();

        File file = new File("testIO\\1.txt");
        file.createNewFile();
    }
}
